package de.mpii.web;

import de.mpii.html.parser.HtmlParser;
import de.mpii.util.Uhtml;

public class GoogleUrlParser extends HtmlParser {

	private static final String CITE = "<cite";
	private static final String _CITE = "</cite>";

	public GoogleUrlParser(String html) {
		super(CITE, _CITE, false);

		setContent(html);
	}

	@Override
	public String next() {
		String urlString = super.next();

		if (urlString == null)
			return null;

		return "http://" + Uhtml.strip(urlString);
	}
}
